/* eslint-disable jsx-a11y/anchor-is-valid */
const UserAuthConfigColumns = function () {
  return [
    {
      title: '姓名',
      dataIndex: 'userName',
      key: 'userName',
      open: true,
      fixed: false,
      ellipsis: true,
      width: 150
    },
    {
      title: '工号',
      dataIndex: 'userCode',
      key: 'userCode',
      open: true,
      fixed: false,
      ellipsis: true,
      width: 150
    },
    {
      title: '员工机构',
      dataIndex: 'unitName',
      key: 'unitName',
      open: true,
      fixed: false,
      ellipsis: true,
      width: 330
    },
    {
      title: '员工角色',
      dataIndex: 'roleName',
      key: 'roleName',
      open: true,
      fixed: false,
      ellipsis: true,
      width: 260
    },
    {
      title: '权限机构',
      dataIndex: 'authUnitName',
      key: 'authUnitName',
      open: true,
      fixed: false,
      ellipsis: true,
      render: (text, record, index) => {
        const authUnitName = record.userRoleList[0]?.authUnitNameStr
        return authUnitName
      }
    }
  ]
}

export default UserAuthConfigColumns
